package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.EArchivesDao;
import io.renren.entity.EArchivesEntity;
import io.renren.service.EArchivesService;



@Service("eArchivesService")
public class EArchivesServiceImpl implements EArchivesService {
	@Autowired
	private EArchivesDao eArchivesDao;
	
	@Override
	public EArchivesEntity queryObject(Integer id){
		return eArchivesDao.queryObject(id);
	}
	
	@Override
	public List<EArchivesEntity> queryList(Map<String, Object> map){
		return eArchivesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return eArchivesDao.queryTotal(map);
	}
	
	@Override
	public void save(EArchivesEntity eArchives){
		eArchivesDao.save(eArchives);
	}
	
	@Override
	public void update(EArchivesEntity eArchives){
		eArchivesDao.update(eArchives);
	}
	
	@Override
	public void delete(Integer id){
		eArchivesDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		eArchivesDao.deleteBatch(ids);
	}
	
}
